package com.mini.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mini.admin.api.entity.SysUser;
import com.mini.admin.mapper.SysUserMapper;
import com.mini.admin.service.SysUserService;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService{
    /**
     * 根据username查询user
     */
    @Override
    public SysUser getUserByUsername(String username) {
        return this.baseMapper.getUserByUsername(username);
    }

    /**
     * 根据mobile获取user
     */
    @Override
    public SysUser getUserByMobile(String mobile) {
        return this.baseMapper.getUserByMobile(mobile);
    }
}




